package com.zjy.software.day12;

import java.util.HashSet;
import java.util.Set;

public class SetDemo {
    public static void main(String[] args) {
        Set set=new HashSet();

        set.add("111");
        set.add("222");
        set.add("333");
        set.add("444");
        set.add("333");
        set.add("444");
        set.add("555");


        System.out.println("set = " + set);
        Set<Dog> dogs=new HashSet<>();
        dogs.add(new Dog("wangcai"));
        dogs.add(new Dog("wangcai"));
        dogs.add(new Dog("wangcai"));
        System.out.println("dogs = " + dogs);

    }
}
